-
Notifications
You must be signed in to change notification settings - Fork 8
Add drives to the filebrowser #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add drives to the filebrowser #5
Conversation
8d188ec to
3e335b4
Compare
…with the default file browser and the added drive one.
0949308 to
519065a
Compare
…ddDrivesPlugin and moved hard coded inputs mimicking backend side inputs , outside from the plugins and methods.
519065a to
762b483
Compare
src/index.ts
Outdated
| toolbarRegistry, | ||
| settingRegistry, | ||
| FILE_BROWSER_FACTORY, | ||
| FILE_BROWSER_PLUGIN_ID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should match the id of this plugin. I strongly advice you to use that constant as the id to avoid mistake here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be fair I don't understand this point because it seems that FILE_BROWSER_PLUGIN_ID is refering to a plugin ID but then if a plugin name is given there, the following error message appears in the console:
jlab_core.96e0941fd34af0e81382.js?v=96e0941fd34af0e81382:1 Failed to load toolbar items for factory FileBrowser from @jupyter/drives:add-drives Error: Schema not found: /home/florence/micromamba/envs/new-jupyter-drives-dev/share/jupyter/lab/schemas/@jupyter/drives/add-drives.json
at Function.create (jlab_core.96e0941fd34af0e81382.js?v=96e0941fd34af0e81382:1:1272526)
at async a.fetch
It is a settings json file in the schemadirectory that seems expected
src/index.ts
Outdated
| if (settingRegistry) { | ||
| setToolbar( | ||
| driveBrowser, | ||
| createToolbarFactory( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this to work you need to add a property toolbar in the setting JSON schema file like for the default browser:
https://github.com/jupyterlab/jupyterlab/blob/1c1058cc4933a4c67d10bc46927e59365aff9aaa/packages/filebrowser-extension/schema/widget.json#L55
53300ba to
3dc1c2b
Compare
Add logics to add the content of the drive to the filebrowser when adding a drive in the dialog.
19db95c to
41e8774
Compare
…nterface, when picking a drive by its name in the list of available drives. Add a toolbar to all the drive filebrowsers.
41e8774 to
becd51b
Compare
269613b to
60fb2b5
Compare
a1fa360 to
5cb95bc
Compare
Create a BreadCrumbsLayout to enable to have the breadcrumbs inside the AccordionPanel title section
5cb95bc to
2e46f8a
Compare
…multidrivesbrowser.ts, dirlisting.ts -> drivelisting.ts. Restore in index.ts a proper logics to add the content of an added driveBrowser to the multidrives browser when a drive is selected and added in the dialog.
c2f1eeb to
60c8eec
Compare
|
Closing this as it is outdated. Thanks for the work! |
Add logics to display selected drives to the filebrowser.